<!-- Start of first page -->
<div
	data-role="page">
	<div data-role="header" data-theme="b">
		<a href="#" data-icon="back" onclick="history.go(-1);">返回</a>
		<h1>
			欢迎
			<?php echo Yii::app()->user->name?>
		</h1>
		<?php echo CHtml::link("帮助",array("site/page", "view"=>"help"),array("data-icon"=>"info"))?>
	</div>
	<!-- /header -->
	<?php $this->renderPartial("//site/toolbar")?>
	<!-- /footer -->
	<?php if(!empty($error)||!empty($info)):?>
		<ul>
		<?php if(!empty($error)):?>
			<li><font color='red'><?php echo $error?></font></li>
		<?php endif?>
		<?php if(!empty($info)):?>
			<li><font color='green'><?php echo $info?></font></li>
		<?php endif?>
		</ul>
	<?php endif?>
	<div data-role="content">
		<ul data-role="listview" id="listview">
			<li><a href="<?php echo Yii::app()->createUrl('news/user'); ?>"
				rel='external'> <?php echo CHtml::image(Yii::app()->baseUrl."/images/category/news.png","iLook新闻");?><b>我的新闻</b>
					<br /> <span class='description'>点此查看您评论过的新闻<br /> </span> </a>
			</li>
		</ul>
	</div>
	<div data-role="content">
		<ul data-role="listview" id="listview">
			<li><a href="<?php echo Yii::app()->createUrl('bbs/user'); ?>"
				rel='external'> <?php echo CHtml::image(Yii::app()->baseUrl."/images/category/bbs.png","iLook论坛");?><b>我的论坛</b>
					<br /> <span class='description'>点此查看您的论坛发言<br /> </span> </a>
			</li>
		</ul>
	</div>
	<div data-role="content">
		<ul data-role="listview" id="listview">
			<li><a href="<?php echo Yii::app()->createUrl('user/favorite'); ?>"
				rel='external'> <?php echo CHtml::image(Yii::app()->baseUrl."/images/category/own.png","iLook图片");?><b>我的搜藏</b>
					<br /> <span class='description'>点此查看您收藏的帖子<br /> </span> </a>
			</li>
		</ul>
	</div>
	<div data-role="content">
		<ul data-role="listview" id="listview">
			<li><a href="<?php echo Yii::app()->createUrl('gallery/index'); ?>"
				rel='external'> <?php echo CHtml::image(Yii::app()->baseUrl."/images/category/gallery.png","iLook图片");?><b>我的图片</b>
					<br /> <span class='description'>点此查看您的图片库<br /> </span> </a>
			</li>
		</ul>
	</div>
	<?php if(!yii::app()->user->isGuest  && UserIdentity::getUserDetail(Yii::app()->user->id)->nickname == null):?>
	<a data-role="button" data-icon="star" data-theme='b' data-transition="pop" data-rel="dialog" href="#nickname">申请昵称</a>
	<?php endif?>

	<!--/content-primary -->
	<br><br>
	<?php $this->renderPartial("//site/footer")?>
	<!-- /footer -->
</div>
<!-- /page -->
<?php if(!yii::app()->user->isGuest  && UserIdentity::getUserDetail(Yii::app()->user->id)->nickname == null):?>
<div data-role="page" id="nickname">
	<div data-role="header" data-theme="b">
		<h1>
			申请昵称
		</h1>
	</div>
	<div data-role="content" style="padding: 0 0 0 0;background-color:white;">
		<div class="ui-body ui-body-b">
		<?php echo CHtml::form('','post',array("data-ajax"=>"false","name"=>"nicknameform")); ?>
				<div data-role="fieldcontain">
				<label for="slider">请在下方输入昵称：</label>
				<input name="MemberDetails[nickname]" id="nickname" type="text" maxlength="10" />
			</div>
			<input type='submit' data-theme='b' value='确定' data-inline='true'/>
		<?php echo CHtml::endForm(); ?>
		<div data-role="collapsible" style="width: 98%; border-bottom: 1px dashed #b7b7b7">
			<h3>注意事项：</h3>
			<ul>
				<li>昵称好处1：申请昵称后您在论坛和新闻页发布内容或回复时，作者位置将显示为您的昵称</li>
				<li>昵称好处2：您可以自定义中文昵称</li>
				<li>注意：昵称是唯一的，申请成功后不可再申请昵称。</li>
				<li>注意：昵称限制2-8个字符。</li>
			</ul>
		</div>
		</div>
	</div>
		
	<?php $this->renderPartial("//site/footer")?>
	<!-- footer -->	
</div>
<!-- /page -->
<?php endif?>
